//
//  EOEntityAdditions.java
//  WOGroovy
//

package groovy.lang.webobjects.categories;

import com.webobjects.foundation.*;
import com.webobjects.eoaccess.*;
import er.extensions.*;

public class EOEntityAdditions {

    //
    // accessing
    //

    public static NSArray allSubEntities(EOEntity self,
                                         boolean includeAbstracts) {
        return ERXUtilities.allSubEntitiesForEntity(self, includeAbstracts);
    }

    public static EOEntity rootParentEntity(EOEntity self) {
        return ERXUtilities.rootParentEntityForEntity(self);
    }

}
